var http = require('http');

http.createServer(function (request, response) {
  response.writeHead(200, {'Content-Type': 'text/plain'});
  
  console.log("Request Url is: " + request.url);
  if(request.url.indexOf("/cards") == 0){
	console.log("get Card...");
  }
  
  response.end('Hello World\n');
  
}).listen(808);

console.log('Server running at http://127.0.0.1:808');